package com.edu.bhu.admin.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.edu.bhu.common.annotation.Excel;
import com.edu.bhu.common.core.domain.BaseEntity;

/**
 * 房屋标签对象 hou_tag
 * 
 * @author zhangkeyi
 * @date 2022-02-22
 */
public class HouTag extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 标签唯一标识 */
    private Long tagId;

    /** 标签名称 */
    @Excel(name = "标签名称")
    private String name;

    /** 优先级 1 2 3 */
    @Excel(name = "优先级 1 2 3")
    private Long prior;

    /** 房屋是否存在此标签标识 默认不存在 */
    private boolean flag = false;

    public void setTagId(Long tagId) 
    {
        this.tagId = tagId;
    }

    public Long getTagId() 
    {
        return tagId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPrior(Long prior) 
    {
        this.prior = prior;
    }

    public Long getPrior() 
    {
        return prior;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("tagId", getTagId())
            .append("name", getName())
            .append("prior", getPrior())
            .toString();
    }
}
